// 220830 liang 异步假请求
const fakeReq = fn => {
  // 生成 5 - 35 的随机数
  let time = parseInt(Math.random() * (35 - 5 + 1) + 5)
  let timer = setTimeout(() => {
    fn && fn(time)
    clearTimeout(timer)
  }, time * 100)
}

wx.$fakeReq = fakeReq